/** Header file for planet destructor
 *	Created 11.9.2009 by Rune; Made all public interfaces
 */

#ifndef COMMON_H
#define COMMON_H
 
#include <vector>
#include <list>
#include "port.h"
#include <stdlib.h>

#define FPS 100

#define PARTICLE_MASS 1.0
#define COL_RATIO_TOLERANCE 0.33
#define COL_VELOCITY_DISTORTION 10.0

// Hackish floating point random
#define frand() (double(rand())/double(RAND_MAX))

class DataBank;

// Type of game
enum GameType {
	GAME_NORMAL,
	GAME_DEMO
};

 
/** Defines the meaning of the bits in the Action flag variable */
/*enum ACTION_FLAGS {
    SHOT=1, DONE=2, SURRENDER=4
};*/
 
/** Structure that contains information of a player choice */
/*struct Action {
    Weapon* weapon;
    double angle;
    double velocity;
    int flags;
};*/
 
/** Enumeration for different playertypes.
*    At first we will only use HUMAN_PLAYER
*    Added for increased flexibility */
enum PlayerType {
    HUMAN_PLAYER, COMPUTER_PLAYER, NET_PLAYER
};

/** Enumeration for types of gravitated objects
 */
enum GravitatedType {
	SHOT, PARTICLE
};

#endif

